package com.guigu.base.feign;

import com.guigu.user.entity.City;
import com.guigu.user.entity.Province;
import com.guigu.user.entity.vo.AreaVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @ClassName:AddressFeign
 * @Description:从用户服务那里获取到的信息
 * @Author:taoLong
 * @Date:2021/11/18:11:10 星期四
 * @email:2391611102@qq.com or 2391611102qq@gmail.com
 */

@FeignClient(name = "service-user")
public interface AddressFeign {

    /**
     * 获取所有的省份信息
     *
     * @return
     */
    @GetMapping("/user/province/getAllProvince")
    public List<Province> getAllProvince();

    /**
     * 获取所有的城市信息
     *
     * @return
     */
    @GetMapping("/user/city/getAllCity")
    public List<City> getAllCity();

    /**
     * 获取所有的区域信息
     *
     * @return
     */
    @GetMapping("/user/area/getAllArea")
    public List<AreaVO> getAllArea();
}
